<template>
  <MapContainer />
  <!-- <button @click="addCount">count is: {{ count }}</button>
  <el-button type="primary" icon="el-icon-search">搜索</el-button> -->
</template>

<script lang="ts">
import { computed, defineComponent } from "vue";
import { useStore } from "./store/index";
import MapContainer from "@/views/MapContainer.vue";

export default defineComponent({
  name: "App",
  components: {
    MapContainer,
  },
  setup() {
    const store = useStore();
    const count: any = computed({
      get() {
        return store.state.count;
      },
      set(value) {
        store.commit("increment", value);
      },
    });

    function addCount() {
      count.value += 1;
    }

    return {
      count,
      addCount,
    };
  },
});
</script>

<style lang="scss">
html,
body,
#app {
  height: 100%;
  margin: 0 !important;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
</style>
